const mongoose = require('mongoose')

const userSchema = new mongoose.Schema({
  gender: Number,
  name: String,
  nick_name: String,
  username: String,
  password: String,
  sign: String,
  openid: String,
  university: String,
  uid: String,
  avatar_url: String,
  organization: String,
  phone_number: String
})

const User = mongoose.model('users', userSchema)

module.exports = User